<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<form method="post" class="J_ajaxForm" autocomplete="off" action='<yjd:url url="/credit/apply"/>'>
    <input type="hidden" name="id" value="${credit.id}"/>
<div class="wrap">
    <div class="nav">
        <div class="return">
            <a href="${requestScope.FPWEB.rootPath }/credit/list${requestScope.FPWEB.urlStuff}">返回上一级</a>
        </div>
    </div>
    <div class="h_a">审批详情</div>
    <div class="table_full">
        <table width="100%">
            <tbody>
            <tr>
                <th width="100">用户名</th>
                <td>${user.nickname}(${user.user_id})</td>
            </tr>
            <tr>
                <th width="100">手机号</th>
                <td>${user.mobile_number}</td>
            </tr>
            <tr>
                <th width="100">身份证号</th>
                <td>${user.idcard}</td>
            </tr>
            <tr>
                <th width="100">真实姓名</th>
                <td>${user.idname}</td>
            </tr>
            <tr>
                <th width="100">申请额度</th>
                <td><f:formatNumber value="${credit.apply_credit_line}" pattern=",##0.00"/></td>
            </tr>
            <tr>
                <th width="100">申请时间</th>
                <td><yjd:jstl_date value="${credit.apply_time}" parttern="yyyy-MM-dd HH:mm:ss"/></td>
            </tr>
            <tr>
                <th width="100">可用额度</th>
                <td><f:formatNumber value="${user.strMap.residual_amount}" pattern=",##0.00"/></td>
            </tr>
            </tbody>
        </table>
    </div>

    <div class="h_a"> 银行卡信息</div>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>银行</td>
                <td>银行卡号</td>
                <td>真实姓名</td>
                <td>身份证号</td>
                <td>预留手机号</td>
                <td>绑卡时间</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>${user.strMap.bank_name}</td>
                <td>${user.strMap.bank_no}</td>
                <td>${user.strMap.idName}</td>
                <td>${user.strMap.idCard}</td>
                <td>${user.strMap.bank_mobile}</td>
                <td><yjd:jstl_date value="${user.strMap.bank_time}" parttern="yyyy-MM-dd HH:mm:ss"/></td>
            </tr>
            </tbody>
        </table>
    </div>

    <div class="h_a">工作信息</div>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>工作单位</td>
                <td>公司类型</td>
                <td>工作年限</td>
                <td>居住城市</td>
                <td>公司地址</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>${user.strMap.company}</td>
                <td>${user.strMap.companyType}</td>
                <td>${user.strMap.duration}</td>
                <td>${user.strMap.residenceLocation}</td>
                <td>${user.strMap.companyLocation}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="h_a">联系人信息</div>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>所属关系</td>
                <td>联系人姓名</td>
                <td>手机号码</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>${user.strMap.contacRelation}</td>
                <td>${user.strMap.contacName}</td>
                <td>${user.strMap.contacMoblie}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="h_a">借款记录</div>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>订单号</td>
                <td>借款人姓名</td>
                <td>手机号</td>
                <td>订单总金额</td>
                <td>借款金额</td>
                <td>机构名称</td>
                <td>分期期数</td>
                <td>订单状态</td>
                <td>下单时间</td>
            </tr>
            </thead>
            <tbody id="J_word_list">
            <c:forEach items="${pager.pagerModel.dataList }" var="item" >
                <tr>
                    <td>${item.order_id}</td>
                    <td>${item.id_name}</td>
                    <td>${item.mobile_number}</td>
                    <td><f:formatNumber value="${item.order_amount}" pattern=",##0.00"/></td>
                    <td><f:formatNumber value="${item.loan_amount}" pattern=",##0.00"/></td>
                    <td>${item.org_name}</td>
                    <td>${item.period}</td>
                    <td>${item.strMap.status}</td>
                    <td><yjd:jstl_date value="${item.create_time }" parttern="yyyy-MM-dd HH:mm:ss"/></td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <!-- 分页 -->
        <%@ include file="../public/pager/pager.pagination.jsp" %>
    </div>

    <div class="h_a"> 芝麻信用信息</div>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>芝麻信用分数</td>
                <td>行业风险评级</td>
                <td>防欺诈判断</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td><c:if test="${zhimaInfo.credit_score == 0}">无</c:if><c:if test="${zhimaInfo.credit_score > 0}">${zhimaInfo.credit_score}</c:if></td>
                <td>${zhimaInfo.strMap.creditLabel}</td>
                <td><c:if test="${zhimaInfo.fraud_flag == 0}">否</c:if><c:if test="${zhimaInfo.fraud_flag == 1}">是</c:if></td>
            </tr>
            </tbody>
        </table>
    </div>

    <c:if test="${credit.status==0}">
        <div class="h_a">审核结果</div>
    <div class="table_full">
        <table width="100%">
            <tr>
                <td>
                    <ul class="single_list cc" >
                        <li><label><input name="status" type="radio" value="1" checked><span>通过</span></label></li>
                        <li><label><input name="status" type="radio" value="2"><span>拒绝</span></label></li>
                    </ul>
                </td>
            </tr>
        </table>
    </div>
    <div class="btn_wrap">
        <div class="btn_wrap_pd">
            <button class="btn btn_submit J_ajax_submit_btn" type="submit">完成审核</button>
        </div>
    </div>
</div>
</form>
    </c:if>
<script>
    YJD.use('AppAdminCommon');
</script>
</body>